package com.shop.dingdongshoppingapi.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data
@TableName(value = "t_remarks")
public class Remarks {
    /*
    * 备注id*/
    @TableId(type = IdType.AUTO)
    private Long id;
    /*
    * 用户id*/
    private Integer uid;
    /*
     * 订单id*/
    private Integer oid;
    /*
     * 备注内容*/
    private String content;
    /*
     * 创建时间*/
    @JsonFormat(pattern = "yyyy-MM-dd HH-mm-ss")
    private Date ctime;
    /*
     * 标记位*/
    private Integer flag;
    /*
    * 构造函数*/
    public Remarks(){
        this.flag=1;
        this.ctime=new Date();
    }
}
